import mongoengine

from academic.settings import MONGODB

class ExpertWords(mongoengine.DynamicDocument):
    meta = {'collection': MONGODB.get('EXPERTWORDS')}

    id = mongoengine.StringField(db_field='_id', max_length=50, primary_key=True)
    chiorgs = mongoengine.StringField(db_field='机构', max_length=100)
    chicontent = mongoengine.StringField(db_field='中文名称', max_length=50, required=True)
    engcontent = mongoengine.StringField(db_field='英文名称', max_length=50)

